package gui.other;

import javax.swing.*;
import javax.swing.table.TableCellRenderer;
import java.awt.*;
/*

    This file is part of Logica-Logike.

    Logica-Logike is free software: you can redistribute it and/or modify
    it under the terms of the GNU Lesser General Public License as published by
    the Free Software Foundation version 3 of the License.

    Logica-Logike is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU Lesser General Public License for more details.

    You should have received a copy of the GNU Lesser General Public License
    along with Logica-Logike.  If not, see <http://www.gnu.org/licenses/>.

 */
/**
 * Extension de TableCellRenderer;
 * @author Jose Martin Rozanec;
 * @author Maria Julia Racca
 */
public class JComponentCellRenderer implements TableCellRenderer {
    /**
     * Permite obtener el componente de la celda senalada en una JTable pasada como argumento;
     *
     * @param table;
     * @param value;
     * @param isSelected;
     * @param hasFocus;
     * @param row;
     * @param column;
     * @return JComponent - valor presente en la celda senalada;
     */
    public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {
        return (JComponent) value;
    }
}